import http from '../http'
/**
 * 
 * @param {*} form 
 * @returns 登陆
 */
export const login = form => {
    return http.post('user', form)
}
/**
 * 
 * @param {*} param 
 * @returns 用户列表
 */
export const get = param => {
    return http.get('user', param)
}
/**
 * @param {数据} form
 */
export const addOrEdit = form => {
    return http.put('user', form)
}
/**
 * 冻结/解冻账号
 * @param {用户id} id
 */
export const userDelete = id => {
    return http.delete('user', { id })
}
